package land;

import Vo.Land;
import Vo.Store;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import page.PageBean;
import util.JsonResult;

import java.util.List;

@FeignClient
@LoadBalancerClient
public interface LandFeignInterfance {

    @RequestMapping("/land/getAll")
    List<Land> queryAll(@RequestBody PageBean pageBean);

    @RequestMapping("/land/queryById")
    boolean queryByLandId(@RequestBody Store store);

    @RequestMapping("/land/insertStore")
    boolean addLand(@RequestBody Store store);

    @RequestMapping("/land/deleteById")
    boolean deleteById(@RequestBody Store store);

    @RequestMapping("/land/getByname")
    public JsonResult<List<Land>> getByName(String name);

}
